package org.kits.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author SKyOne
 * @create 2020-03-08 20:32
 */
@Component
public class RedisScan {

    @Autowired
    RedisTemplate redisTemplate;

    public void addVal(){
        for (int i = 0; i < 10000; i++) {
            redisTemplate.opsForValue().set("key"+i,i+"");
        }
    }
}
